
class Transaction(object):
    def __init__(self):
        self.install = set()
        self.remove = set()
        self.update = set()
        
    def get_install(self):
        return self.install 
    
    def get_update(self):
        return self.update 
    
    def get_remove(self):
        return self.remove     
        
    def add_install(self, dbpackage):
        self.install.add(dbpackage)
        
    def add_remove(self, rpmpackage):
        self.remove.add(rpmpackage)
        
    def add_update(self, rpmpackage):
        self.update.add(rpmpackage)
